package com.JFapp.controller;

import com.JFapp.domain.entity.ResponseResult;
import com.JFapp.service.CategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api("分类管理")
@RequestMapping("/category")
public class CategoryController {
    @Autowired
    private CategoryService categoryService;

    @ApiOperation("查询分类列表")
    @GetMapping("/getCategoryList")
    public ResponseResult getCategoryList(){
        return  categoryService.getCategoryList();
    }
}
